//// Copyright 2013 Square, Inc.
//package org.assertj.ohos.api.preference;
//
//import ohos.app.Dialog;
//import ohos.preference.PreferenceScreen;
//import ohos.widget.ListAdapter;
//
//import static org.assertj.core.api.Assertions.assertThat;
//
///** Assertions for {@link PreferenceScreen} instances. */
//public class PreferenceScreenAssert
//    extends AbstractPreferenceGroupAssert<PreferenceScreenAssert, PreferenceScreen> {
//  public PreferenceScreenAssert(PreferenceScreen actual) {
//    super(actual, PreferenceScreenAssert.class);
//  }
//
//  public PreferenceScreenAssert hasDialog(Dialog dialog) {
//    isNotNull();
//    Dialog actualDialog = actual.getDialog();
//    assertThat(actualDialog) //
//        .overridingErrorMessage("Expected dialog <%s> but was <%s>.", dialog, actualDialog) //
//        .isSameAs(dialog);
//    return this;
//  }
//
//  public PreferenceScreenAssert hasRootAdapter(ListAdapter adapter) {
//    isNotNull();
//    ListAdapter actualAdapter = actual.getRootAdapter();
//    assertThat(actualAdapter) //
//        .overridingErrorMessage("Expected root adapter <%s> but was <%s>.", adapter,
//            actualAdapter) //
//        .isSameAs(adapter);
//    return this;
//  }
//}
//
